<template>
  <view class="user">
    <image src="/static/index/swiper1.jpg" class="userbg" mode="widthFix" />
    <view class="ewm">
      <image src="/static/index/ewm.png" class="ewmimg" mode="widthFix" />
      <view class="ewmtit">会员码</view>
    </view>
    <!-- 点击登录 -->
    <view class="usernav">
      <view class="untop">
        <view class="untx">
          <view class="uncircle">
            <image
              src="/static/user/user.png"
              class="untximg"
              mode="widthFix"
            />
          </view>
        </view>
        <view class="unnamebox">
          <view class="unname">请点击授权登录</view>
          <view class="untext">当前成长值0/0</view>
          <view class="unplan">
            <view class="progress-box">
              <progress
                :percent="pgList"
                activeColor="#10AEFF"
                stroke-width="5"
              />
            </view>
          </view>
        </view>
        <view class="unlabel">
          <view class="unequ">
            <view>会员权益</view>
            <image
              src="/static/user/rightbai.png"
              class="bairight"
              mode="widthFix"
            />
          </view>
        </view>
      </view>
      <view class="unbot">
        <view class="unson" v-for="(item,i) in navlist" :key="i">
          <view class="unsonnum"> *** </view>
          <view class="unsontit">{{item.name}}</view>
        </view>
      </view>
    </view>
    <!-- 点击登录 -->
    
  </view>
</template>

<script>
export default {
  data() {
    return {
      pgList: 0,
      navlist:[{
        name:'奈雪券'
      },{
        name:'积分商城'
      },{
        name:'余额'
      },{
        name:'礼品卡'
      },]
    };
  },
};
</script>

<style lang="scss">
.user {
  width: 100%;
  height: 100vh;
  padding-bottom: 50rpx;
  box-sizing: border-box;
  background-color: #f0f8fa;
  .userbg {
    width: 100%;
    height: 30vh;
    position: relative;
  }
  .ewm {
    width: 25%;
    height: 60rpx;
    background-color: #fff;
    position: absolute;
    top: 3%;
    right: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a6b516;
    border-radius: 40rpx;
    padding: 10rpx 20rpx;
    box-sizing: border-box;
    .ewmimg {
      width: 25%;
      margin-right: 10rpx;
    }
  }
  .usernav {
    width: 94%;
    aspect-ratio: 2.2;
    background-color: white;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16rpx;
    box-shadow: #e8edef 0rpx 0rpx 10rpx;
    .untop {
      width: 100%;
      height: 48%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .untx {
        width: 30%;
        height: 100%;
        position: relative;
        .uncircle {
          width: 76%;
          height: 100%;
          border-radius: 50%;
          background-color: #fff;
          box-shadow: #B3B8BE 0rpx 0rpx 10rpx;
          position: absolute;
          top: 33%;
          left: 50%;
          transform: translate(-50%, -50%);
          display: flex;
          justify-content: center;
          align-items: center;
          .untximg {
            width: 96%;
            border-radius: 50%;
          }
        }
      }
      .unnamebox {
        width: 45%;
        height: 100%;
        padding-top: 35rpx;
        box-sizing: border-box;
        .unname {
          font-weight: bold;
        }
        .untext {
          font-size: 0.7rem;
          color: #a19f9f;
          margin: 5rpx 0;
        }
        .unplan {
          width: 88%;
        }
      }
      .unlabel {
        width: 25%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        .unequ {
          width: 100%;
          height: 60rpx;
          background-color: #f9b613;
          font-size: 0.8rem;
          color: white;
          padding: 10rpx 20rpx;
          box-sizing: border-box;
          border-top-left-radius: 30rpx;
          border-bottom-left-radius: 30rpx;
          display: flex;
          align-items: center;
          .bairight {
            width: 30rpx;
          }
        }
      }
    }
    .unbot {
      width: 100%;
      height: 52%;
      display: flex;
      .unson {
        width: 25%;
        height: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        .unsonnum {
          font-size: 1.5rem;
          color: #5b5a5a;
          margin-bottom: 10rpx;
        }
        .unsontit{
          font-size: 0.9rem;
          color: #AAABAC;
        }
      }
    }
  }
}
</style>
